﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using EzDesk.Core.Model;
using EzDesk.Apps.Model.Staff;
using EzDesk.Utility;
using EzDesk.Utility.ServiceStatusInfo;

namespace EzDesk.Apps.Interface.Staff
{
    [ServiceContract]
    public interface IStaffService : IAppService
    {
        /// <summary>
        /// 获得一个员工的员工详细信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        [OperationContract]
        StatusInfo<ContactInfo> GetContactInfoByUserId(Guid userId);

        /// <summary>
        /// 获得多个员工详细信息
        /// </summary>
        /// <param name="memberstring"></param>
        /// <returns></returns>
        [OperationContract]
        StatusInfo<IList<ContactInfo>> GetContactInfos(string memberstring);

        /// <summary>
        /// 更新员工详细信息
        /// </summary>
        /// <param name="newContactInfo"></param>
        [OperationContract]
        StatusInfo UpdateContactInfo(ContactInfo newContactInfo);

    }
}
